build: Enable subdir-objects
authorEmmanuele Bassi <ebassi@gnome.org>
Wed, 19 Oct 2016 14:21:03 +0000 (15:21 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Wed, 19 Oct 2016 14:26:24 +0000 (15:26 +0100)
commit59af3a0c15c44b97920fec7afbf289ceddd4ba69
tree68835797eb2349a1e6b1688047d876d99e63093d
parent24cb9d4ba6e059b415e9c17b0f4e92ff8865fe22
build: Enable subdir-objects

Newer versions of Automake warn about forward compatibility when the
build uses sources in sub-directories without the subdir-objects option.

Both GTK+ and GDK have an almost-but-not-quite non-recursive Automake
layout, with sources in sub-directories contributing to the build of a
top-level object.

In theory, just adding subdir-objects to AM_INIT_AUTOMAKE would be
enough, but the test suite references sources in a different top-level
in order to build tests that verify the implementation of private data
structures. This is not really allowed when using subdir-objects and out
of srcdir builds. In order to fix this case, we require some ad hoc
rules to create symbolic links in the appropriate build directory.
configure.ac
testsuite/gtk/Makefile.am